package io.renren.modules.api.controller;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import io.renren.common.annotation.SysLog;
import io.renren.common.utils.DateUtils;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
import io.renren.common.validator.ValidatorUtils;
import io.renren.modules.api.entity.WeixinNoEntity;
import io.renren.modules.api.service.WeixinNoService;
import io.renren.modules.sys.entity.SysConfigEntity;
import io.renren.modules.sys.service.SysConfigService;
import io.renren.modules.sys.shiro.ShiroUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;


/**
 * @author owen
 * @email zhaoouyang@qq.com
 * @date 2018-05-29 15:20:48
 */
@CrossOrigin
@RestController
@RequestMapping("api/weixinno")
public class ApiWeixinNoController {
    @Autowired
    private SysConfigService sysConfigService;

    /**
     * 信息
     */
    @CrossOrigin
    @RequestMapping("/getWxno")
    public R info(@RequestParam Map<String, Object> params){

        String page = sysConfigService.getValue("CLOUD_STORAGE_CONFIG_KEY");

        return R.ok().put("data", page);
    }

}
